import { defineStore } from 'pinia'
import { ref } from 'vue'
import type { IOrderItem } from '@/types/order'

export const useReview = defineStore('review', () => {
  const reviewData = ref<IOrderItem[]>()

  const setReviewData = (val: IOrderItem[]) => {
    reviewData.value = val
  }

  const getReviewData = () => {
    return reviewData.value
  }

  return { getReviewData, setReviewData }
})
